package com.entity;/*
 *
 *作者：张继成
 *任务：用于对接关于我们系统的实体类
 *
 *备注：关于我们，系统的相关介绍。
 *@Date2023/06/01/21:34
 ***/

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

@TableName("systemintro")
@Data
public class SystemintroEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    //构造方法
    public SystemintroEntity() {

    }

    public SystemintroEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;
    //标题
    private String title;
    //副标题
    private String subtitle;
    //内容
    private String content;
    //图片1
    private String picture1;
    //图片2
    private String picture2;
    //图片3
    private String picture3;
    //获取时间
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

}
